﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FixedPropertyManagement.Models;


namespace FixedPropertyManagement
{
    public class employeeService
    {
        private static PropertyMangementEntities3 db = new PropertyMangementEntities3();
        /// <summary>
        /// 获取员工所有数据
        /// </summary>
        /// <returns></returns>
        public static List<Employee> getAllEmployeeData()
        {
            return (from em in db.Employees
                    where em.DepartId != 520
                    select em).ToList();
        }
    }
}